#ifndef BOOK_H_INCLUDED
#define BOOK_H_INCLUDED

struct book_s
{
    struct book_s* previous;
    struct book_s* next;
    char* isbn;
    char* title;
    char* author;
    char* press;
    int total;
    int rest;
};

typedef struct book_s book;

book* create_books_list(char*);
void free_book(book*);
void show_book(book*);
book* create_book();
book* search_book(book*, char*);
int book_borrow_book(book*, char*);
int book_return_book(book*, char*);

#endif // BOOK_H_INCLUDED
